package com.usian.admin.feign;

import com.usian.model.article.pojos.ApArticleContent;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * ClassName: ApArticleClient
 * Author:   WGG
 * Date:    2022-11-2022/11/23-20:11
 * Version: 1.0
 * Description:
 */
@FeignClient("leadnews-article")
public interface AdArticleContentClient {
    @PostMapping("/article/api/v1/articleContent/saveArticleContent")
    public ResponseResult saveArticleContent(@RequestBody ApArticleContent apArticleContent);


    @GetMapping("/article/api/v1/articleContent/findById/{id}")
    public ApArticleContent findById(@PathVariable("id") Long id);
}
